/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: UserController
 * Author:   kadibeieun
 * Date:     2019/9/3 16:37
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.afd.consumer.controller;

import com.afd.consumer.pojo.User;
import com.afd.consumer.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author kadibeieun
 * @create 2019/9/3
 * @since 1.0.0
 */
@RestController
@RequestMapping("consume")
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping()
    public List<User> consume(@RequestParam("ids") List<Long> ids){
        List<User> users = userService.querUserByIds(ids);
        return users;
    }
}